import http from '@/utils/http';

const transferLens = {
  //镜种转换单视图
  query(params: any) {
    let url = '/TransferLens/Query';
    return http.post(url, params);
  },
  //镜种转换单详情
  detail(id: Number) {
    let url = '/TransferLens/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //镜种转换单保存
  save(params: Object) {
    let url = '/TransferLens/Save';
    return http.post(url, params);
  },
  //镜种转换单审核
  check(ids: Array<Number>) {
    let url = '/TransferLens/Check';
    const params = { ids };
    return http.post(url, params);
  },
  //镜种转换单弃审
  unCheck(ids: Array<Number>) {
    let url = '/TransferLens/UnCheck';
    const params = { ids };
    return http.post(url, params);
  },
  //镜种转换单完成
  complete(ids: Array<Number>) {
    let url = '/TransferLens/Complete';
    const params = { ids };
    return http.post(url, params);
  },
  //镜种转换单取消
  cancel(ids: Array<Number>) {
    let url = '/TransferLens/Cancel';
    const params = { ids };
    return http.post(url, params);
  },
  //导出
  export(params: Object) {
    let url = '/TransferLens/Export';
    return http.postDownload(url, params);
  },
};
export default transferLens;
